-- GENERATED SPELL FOR [Shadowhoof Assassin] --


function spell0_22858(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(37577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22858', 632, 1)
end

function spell1_22858(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22858', 595, 1)
end

function Sorts_22858(pUnit, Event)
local choix_sorts_22858 = math.random(0, 1)
if choix_sorts_22858 == 0 then
pUnit:RegisterEvent('spell0_22858', 1, 1)
end
if choix_sorts_22858 == 1 then
pUnit:RegisterEvent('spell1_22858', 1, 1)
end
end

function mob22858_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22858', math.random(1500, 3000), 1)
end

function mob22858_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22858_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22858_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22858, 1, 'mob22858_Action')
RegisterUnitEvent(22858, 2, 'mob22858_Leave')
RegisterUnitEvent(22858, 3, 'mob22858_Kill')
RegisterUnitEvent(22858, 4, 'mob22858_Die')
